<?php
include_once 'app/until/error.php';
class Page extends Error_Codes{

	private $daten;


	public function __construct($match){
		$this->daten = $match;
	}

	public function getWort(RainTPL $design){
	    $this->design-> $design;
	    
	    $ErrorCode = new Error_Codes();
		$this->design->assign ('css',"loginscreen");
		$this->design->assign ('js',"jsLoginScreen");
		$this->design->assign ( 'error',$ErrorCode->code($this->daten['Error_Code']));
	
		if( $cache = $this->design->cache( $this->design->ln.'/error/page', $expire_time = 600 ) )
		 {
		 	echo $cache;
		 }
		 else
		 {
		 	$this->design->draw( $this->design->ln.'/error/page' );
		 }
	}

}
?>